package com.quarkus;

import org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory;

import javax.ws.rs.core.MultivaluedMap;

public class RestClientHeaderFactory implements ClientHeadersFactory {
    @Override
    public MultivaluedMap<String, String> update(MultivaluedMap<String, String> incomingHeaders, MultivaluedMap<String, String> clientOutgoingHeaders) {
        incomingHeaders.forEach((k,v)->{
            System.out.println(k + " = " + v);
        });
        System.out.println("-------------------------");
        clientOutgoingHeaders.forEach((k,v)->{
            System.out.println(k + " = " + v);
        });
        return incomingHeaders;
    }
}
